﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CaseProfileFinancialSource.ascx.cs" Inherits="PayrollHR.Administration.Modules.CaseProfileFinancialSource" %>
<%@ Register Src="DecimalTextBox.ascx" TagName="DecimalTextBox" TagPrefix="uc3" %>
<%@ Register Src="DatePicker.ascx" TagName="DatePicker" TagPrefix="uc2" %>
<%@ Register Src="ToolTipLabelControl.ascx" TagName="ToolTipLabelControl" TagPrefix="uc1" %>

<style type="text/css">
    .auto-style1 {
        height: 30px;
    }
</style>
<table class="auto-style1">
    <tr>
        <td class="auto-style2" colspan="6">

            <asp:GridView ID="gvObject" runat="server" AutoGenerateColumns="False" Width="100%"
                OnPageIndexChanging="gvObject_PageIndexChanging" AllowPaging="true"
                PageSize="12" OnRowDataBound="gvObject_RowDataBound" OnRowDeleting="gvObject_RowDeleting">
                <Columns>
                    <asp:TemplateField HeaderText="Giấy tờ cần thiết" ItemStyle-Width="20%">
                        <ItemTemplate>
                            <%#Server.HtmlEncode(Eval("PaperRequest").ToString())%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Nội dung"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <%#Server.HtmlEncode(Eval("Content").ToString())%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ngày làm"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <%#Server.HtmlEncode(Eval("OnDate").ToString())%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ai làm"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <%#Server.HtmlEncode(Eval("WHoDo").ToString())%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Cước Phí"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <%#Server.HtmlEncode(Eval("Postage").ToString())%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Lúc Nào Hoàn Tất"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <%#Server.HtmlEncode(Eval("ProComplete").ToString())%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Delete" HeaderStyle-HorizontalAlign="Center"
                        ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:HiddenField ID="hfProfileID" runat="server" Value='<%# Eval("ProfileFinanID") %>' />
                            <asp:LinkButton ID="lbDelete" runat="server" CommandName="Delete" Text="Delete" />
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
                    </asp:TemplateField>
                </Columns>
                <PagerSettings PageButtonCount="50" Position="TopAndBottom" />
            </asp:GridView>







        </td>
    </tr>
    <tr>
        <td class="auto-style2">
            <uc1:ToolTipLabelControl runat="server" ID="lblPaperRequest" Text="<%$PayrollResources:Admin.CaseProfileFinancialSource.PaperRequest.Text%>"
                ToolTip="<% $PayrollResources:Admin.CaseProfileFinancialSource.PaperRequest.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td class="auto-style2">
            <uc1:ToolTipLabelControl runat="server" ID="lblContent" Text="<%$PayrollResources:Admin.CaseProfileFinancialSource.Content.Text%>"
                ToolTip="<% $PayrollResources:Admin.CaseProfileFinancialSource.Content.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td class="auto-style2">
            <uc1:ToolTipLabelControl runat="server" ID="lblOnDate" Text="<%$PayrollResources:Admin.CaseProfileFinancialSource.OnDate.Text%>"
                ToolTip="<% $PayrollResources:Admin.CaseProfileFinancialSource.OnDate.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td class="auto-style2">
            <uc1:ToolTipLabelControl runat="server" ID="lblWHoDo" Text="<%$PayrollResources:Admin.CaseProfileFinancialSource.WHoDo.Text%>"
                ToolTip="<% $PayrollResources:Admin.CaseProfileFinancialSource.WHoDo.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td class="auto-style2">
            <uc1:ToolTipLabelControl runat="server" ID="lblPostage" Text="<%$PayrollResources:Admin.CaseProfileFinancialSource.Postage.Text%>"
                ToolTip="<% $PayrollResources:Admin.CaseProfileFinancialSource.Postage.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td class="auto-style2">
            <uc1:ToolTipLabelControl runat="server" ID="lblProComplete" Text="<%$PayrollResources:Admin.CaseProfileFinancialSource.ProComplete.Text%>"
                ToolTip="<% $PayrollResources:Admin.CaseProfileFinancialSource.ProComplete.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
    </tr>
    <tr>
        <td>
            <asp:TextBox ID="txtPaperRequest" runat="server" Width="100px"></asp:TextBox>
        </td>
        <td>
            <asp:TextBox ID="txtContent" runat="server" Width="100px"></asp:TextBox>
        </td>
        <td>
            <uc2:DatePicker ID="dpOnDate" runat="server" />
        </td>
        <td>
            <asp:TextBox ID="txtWHoDo" runat="server" Width="100px"></asp:TextBox>
        </td>
        <td>
            <uc3:DecimalTextBox ID="txtPostage" runat="server" Width="100px" />
        </td>
        <td>
            <asp:TextBox ID="txtProComplete" runat="server" Width="120px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="auto-style1"></td>
        <td class="auto-style1"></td>
        <td class="auto-style1"></td>
        <td class="auto-style1"></td>
        <td class="auto-style1"></td>
        <td style="text-align: right">
            <asp:Button ID="btnAdd" runat="server" CssClass="adminButtonBlue" OnClick="btnAdd_Click" Text="<% $PayrollResources:Admin.CaseProfileFinancialSource.Add.Text %>"
                ToolTip="<% $PayrollResources:Admin.CaseProfileFinancialSource.Add.Tooltip %>" CausesValidation="False" />
        </td>
    </tr>
</table>









